package com.test5;

import java.io.FileInputStream;

/**
 * 测试案例
 */
public class TestCase {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("C:\\Users\\LDH\\Desktop\\test2.txt");
        //读取
        int data = 0;
        while ((data = fis.read()) != -1){
            System.out.print((char) data);
        }
        //关闭
        fis.close();
    }
}
